import HTTP from "../xhr"
/**
 * xxx 即可名称
 * @param params 参数注释
 * @returns 
 */
export const apiGetPageMaintQuery =(params)=>{
    return HTTP.post('/rm2/pageMaint/query', params);
    // return HTTP.postForm('/pageMaint/query', params); // post表单
    // return HTTP.get('/rm2/pageMaint/query', params);
}  
export const apiGetModule1 =(params)=>{
    return HTTP.post('/rm2/backendPrjMaint/listModule1', params);
   
} 

export const apiGetModule2 =(params)=>{
    return HTTP.post('/rm2/backendPrjMaint/listModule2', params);
   
} 
//获取环境配置apiGetenv
export const apiGetenv =(params)=>{
    return HTTP.post('/rm2/configEnvMaint/query', params);
   
} 
//获取所有后端项目
export const apiGetbackproject =()=>{
    return HTTP.post('/rm2/backendPrjMaint/listProject');
   
}  
//菜单表格
export const apiGetmenuMaintQuery =(params)=>{
    return HTTP.post('/rm2/menuMaint/queryNodes', params);
   
}  
//菜单保存
export const apiGetmenuMaintSave =(params)=>{
    return HTTP.post('/rm2/menuMaint/save', params);
   
}  
//菜单删除
export const apiGetmenuMaintDel =(params)=>{
    return HTTP.post('/rm2/menuMaint/delete', params);
   
} 
//提示码表格
export const apiGettipcodeMaintQuery =(params)=>{
    return HTTP.post('/rm2/tipcodeMaint/query', params);
   
}  
//提示码保存
export const apiGettipcodeMaintSave =(params)=>{
    return HTTP.post('/rm2/tipcodeMaint/save', params);
   
}  
//提示码删除
export const apiGettipcodeMaintDel =(params)=>{
    return HTTP.post('/rm2/tipcodeMaint/delete', params);
   
} 
//查询级联代码
//提示码删除
export const apiGetquerySubitem =(params)=>{
    return HTTP.post('/rm2/codesetMaint/querySubitem', params);
   
} 
//查询代码明细
export const apiQueryUserPostsWithDept = (params)=>{
    return  HTTP.post('/rm2/codesetMaint/queryCodeitem', params)
}
//查询级联明细
export const apiQueryLink = (params)=>{
    return  HTTP.post('/rm2/codesetMaint/querySubitem', params)
}
export const apiQueryCodeset = (params)=>{
    return  HTTP.post('/rm2/codesetMaint/queryCodeset', params)
}

//代码明细删除
export const apideleteCodeitem =(params)=>{
    return HTTP.post('/rm2/codesetMaint/deleteCodeitem', params);
   
} 
//代码明细保存
export const apiSaveCodeitem =(params)=>{
    return HTTP.post('/rm2/codesetMaint/saveCodeitem', params);
    
}
//级联明细删除
export const apideleteLinkitem =(params)=>{
    return HTTP.post('/rm2/codesetMaint/deleteSubitem', params);
   
} 
//级联明细保存
export const apiSavelinkitem =(params)=>{
    return HTTP.post('/rm2/codesetMaint/insertSubitem', params);
   
}
//序列号列表
export const apiGgetsequenceMaint =(params)=>{
    return HTTP.post('/rm2/sequenceMaint/querySubsec', params);
   
}
//序列号测试
export const apiTestsequenceMaint =(params)=>{
    return HTTP.post('/rm2/sequenceMaint/test', params);
   
}
//序列号保存分段明细
export const apisaveSubsecsequenceMaint =(params)=>{
    return HTTP.post('/rm2/sequenceMaint/saveSubsec', params);
   
}
//序列号删除分段明细
export const apideleteSubsecsequenceMaint =(params)=>{
    return HTTP.post('/rm2/sequenceMaint/deleteSubsec', params);
   
}
//缓存管理 获取缓存
export const apiGetcacheMaint =()=>{
    return HTTP.post('/rm2/cacheMaint/query');
   
}
//前端项目名
export const apiGetfrontPrjMaint =()=>{
    return HTTP.post('/rm2/frontPrjMaint/listProject');
   
}
export const apiGetlistAllModule1 =()=>{
    return HTTP.post('/rm2/backendPrjMaint/listAllModule1');
   
}
//菜单管理递归删除
export const apideleteRecurs =(params)=>{
    return HTTP.post('/rm2/menuMaint/deleteRecurs',params);
   
}


//页面收藏api

//列表查询
export const apipageFavorQuery =(params)=>{
    return HTTP.post('/rm2/pageFavor/query',params);
   
}
//删除
export const apipageFavorDelete =(params)=>{
    return HTTP.post('/rm2/pageFavor/delete',params);
   
}
//新增
export const apipageFavorInsert =(params)=>{
    return HTTP.post('/rm2/pageFavor/insertBatch',params);
   
}
//
export const apiIsFavorPage =(params)=>{
    return HTTP.post('/rm2/pageFavor/isFavorPage',params);
   
}

//置顶排序
export const apiExchangeSortIndex =(params)=>{
    return HTTP.post('/rm2/pageFavor/exchangeSortIndex',params);
   
}


//小代码
export const apiGetCodeitems =(params)=>{
    return HTTP.post('/rm2/codesetMaint/getCodeitems',params);
   
}

export const apiResourceMaintSave =(params)=>{
    return HTTP.post('/rm2/resourceMaint/save',params);
   
}

export const apiResourceMaintQuery =(params)=>{
    return HTTP.post('/rm2/resourceMaint/query',params);
   
}

export const apiResourceMaintDelete =(params)=>{
    return HTTP.post('/rm2/resourceMaint/delete',params);
   
}





